#ifndef ASGKA_ADD_H
#define ASGKA_ADD_H

#include "asgkaBase.h"

class asgkaAdd : public asgkaBase
{
public:
	asgkaAdd();
	asgkaAdd(singleGroup *group, const std::string &name);

	void setNewMemberName(const std::string &name);
	void computeMyDecryptKey();

	bool sendMyPubHToNewMember();
	bool sendMyPubOToNewMember();

private:
	void computeMyGroupKeyR();
	void computeMyGroupKeyA();

private:
	std::string m_name;
};

#endif // ASGKA_ADD_H